<template>
  <el-row type="flex" justify="space-between" align="middle">
    <el-col>
      <!-- 前插槽 -->
      <div v-if="showBefore" class="before">
        <!-- 有名字的是具名插槽，没名字的是匿名插槽 -->
        <slot name="before"/>
      </div>
    </el-col>
    <el-col>
      <!-- 后插槽 -->
      <el-row type="flex" justify="end">
        <slot name="after"/>
      </el-row>
    </el-col>
  </el-row>
</template>

<script>
export default {
  name: 'CommonHeaderInfo',
  props: {
    showBefore: {
      type: Boolean,
      default: false
    }
  }
};
</script>
<style lang='scss'>
</style>
